package me.zhengjie.ship.shipenvbase.service;

import me.zhengjie.ship.shipenvbase.domain.ShipEnvBase;
import me.zhengjie.ship.shipenvbase.service.dto.ShipEnvBaseDto;
import me.zhengjie.ship.shipenvbase.service.dto.ShipEnvBaseQueryCriteria;
import org.springframework.data.domain.Pageable;
import java.util.Map;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

/**
* @author liwh
* @date 2020-04-22
*/
public interface ShipEnvBaseService {

    /**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    Map<String,Object> queryAll(ShipEnvBaseQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<ShipEnvBaseDto>
    */
    List<ShipEnvBaseDto> queryAll(ShipEnvBaseQueryCriteria criteria);

    /**
     * 根据ID查询
     * @param id ID
     * @return ShipEnvBaseDto
     */
    ShipEnvBaseDto findById(Integer id);

    /**
    * 创建
    * @param resources /
    * @return ShipEnvBaseDto
    */
    ShipEnvBaseDto create(ShipEnvBase resources);

    /**
    * 编辑
    * @param resources /
    */
    void update(ShipEnvBase resources);

    /**
    * 多选删除
    * @param ids /
    */
    void deleteAll(Integer[] ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    void download(List<ShipEnvBaseDto> all, HttpServletResponse response) throws IOException;
}